package start.spring.io.movierecommendersystem.lesson9;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ContentBasedFilter implements Filter {

    private static int instancecs =0;


    @Autowired
    private Movie movie;
    public ContentBasedFilter(Movie movie){
        super();
        this.movie = movie;
        instancecs++;

        System.out.println("ContentBasedFilter constructor called");
    }
    public Movie getMovie(){

        return movie;
    }
    public static int getInstancecs(){

        return ContentBasedFilter.instancecs;
    }
    public String [] getRecommendations(String movie) {
        return new String[]{"Happy Feet","Ice Age","Shark Tale"

        };
    }
}






